package com.mimiwang.common.exception;

public enum BizCodeEnum {

    UNKNOWN_EXCEPTION(10000,"系统未知异常"),
    VALID_EXCEPTION(10001,"参数格式校验失败"),

    USERNAME_EXIST(30002,"用户名已存在"),
    VERIFICATION_CODE_ERROR(30003,"验证码错误,请重新输入"),
    USER_NOT_EXIST(30004,"用户不存在"),
    USER_PASSWORD_ERROR(30005,"用户密码错误"),
    PARAM_IS_NULL(30006,"参数不能为空"),
    MOBILE_EXIST(30007,"手机号已被注册"),
    MOBILE_NOT_EXIST(30008,"手机号未被注册,请先注册"),
    PASSWORD_INCORRECT_OVERRUN(30008,"密码错误次数超出限制"),

    NOT_LOGGED_NO(40000,"没有登录，请先登录"),
    ARTICLE_CLASSIFICATION(40001,"给宠物添加一张主页照片吧！"),
    ARTICLE_PUBLISHED_SUCCESSFULLY(200,"文章发布成功"),
    ARTICLE_SAVED_SUCCESSFULLY(200,"文章保存成功"),
    ARTICLE_DELETED_SUCCESSFULLY(200,"文章删除成功"),
    ARTICLE_DELETION_FAILED(40002,"文章删除失败"),
    PLEASE_EDIT(200,"请编辑你的文章");





    private Integer code;
    private String msg;
    BizCodeEnum() {
    }

    BizCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
